Loading
Scriptbox
 VBScript Links 
 About VBscript 
 JavaScript Links 
 About JavaScript 
 Powershell Links 
 PSCRIPT the Script Launcher 
 PowerShell Shortcut Keys 
 About Powershell 
     VBScript
    JavaScript
    Powershell
Disclaimer
Contact
Latest 10 Scripts
Script search
  :: { Category } :: 0-9ABCDEFGHIJKLMNOPQRSTUVWXYZ
         

Search Options:  List  IP  Security  Setting  Information  

 Content of List IP Security Setting Information.vbs
MD5 Hash: F6A6B88CCABA643F2C7520FD9BB865A8
' Description: Lists IIS IP security setting information.


strComputer = "."
Set objWMIService = GetObject _
("winmgmts:{authenticationLevel=pktPrivacy}\\" _
& strComputer & "\root\microsoftiisv2")

Set colItems = objWMIService.ExecQuery _
("Select * from IIsIPSecuritySetting")

For Each objItem in colItems
Wscript.Echo "Name: " & objItem.Name
For Each strDeny in objItem.DomainDeny
Wscript.Echo "Domain Deny: " & strDeny
Next
For Each strGrant in objItem.DomainGrant
Wscript.Echo "Domain Grant: " & strGrant
Next
Wscript.Echo "Grant By Default: " & objItem.GrantByDefault
For Each strDeny in objItem.IPDeny
Wscript.Echo "IP Deny: " & strDeny
Next
For Each strGrant in objItem.IPGrant
Wscript.Echo "IP Grant: " & strGrant
Next
Next

   © 2008 - 2013 Boris Toll      :: Scripts available: 6.481 ::      :: scriptbox.toll.at ::      :: powered by www.toll.at ::
  Google Entries:n/a
  Yahoo Backlinks:n/a
  Live Backlinks:n/a
  del.icio.us Bookmarks:n/a
  Technorati Links:n/a